package com.caine.multithread.demo;

public class Demo07 {
    public static void main(String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                new SimpleClass().say(1);
            }
        }).start();
        new Thread(new Runnable() {
            @Override
            public void run() {
                new SimpleClass().say(2);
            }
        }).start();


//        new Thread(() -> new SimpleClass().say(1)).start();
//        new Thread(() -> new SimpleClass().say(2)).start();
    }
}
